// 蜂窝蜜造平台生成代码，如手工更改，请添加到 .beeignore 忽略生成

package com.fowo.api.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.fowo.api.common.model.OptionItem;
import com.fowo.api.entity.ProductSupplierQuote;
import com.fowo.api.model.product.supplier.quote.ProductSupplierQuoteItemVo;
import com.fowo.api.model.product.supplier.quote.ProductSupplierQuoteItemVoPages;
import com.fowo.api.model.product.supplier.quote.ProductSupplierQuoteSearchParamPo;
import com.fowo.api.model.product.supplier.quote.ProductSupplierQuoteVo;
import java.util.Date;
import java.util.List;
import java.util.Map;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface ProductSupplierQuoteMapper
  extends BaseMapper<ProductSupplierQuote> {
  Page<ProductSupplierQuoteItemVo> pageSearch(
    @Param("page") Page page,
    @Param("search") ProductSupplierQuoteSearchParamPo search
  );
  List<OptionItem<ProductSupplierQuoteItemVo>> searchOptions(
    @Param("search") ProductSupplierQuoteSearchParamPo search
  );
  List<ProductSupplierQuoteItemVo> search(
    @Param("search") ProductSupplierQuoteSearchParamPo search
  );
  Date searchLastUpdateTime(
    @Param("search") ProductSupplierQuoteSearchParamPo search
  );
  /**
   * 搜索满足条件的所有记录的编号列表
   * @param search 搜索参数
   * @return 编号列表
   */
  List<Long> searchIds(
    @Param("search") ProductSupplierQuoteSearchParamPo search
  );
  /**
   * 搜索满足条件的记录数量
   * @param search 搜索参数
   * @return 记录数量
   */
  Long searchCount(@Param("search") ProductSupplierQuoteSearchParamPo search);
  Long getIdByLaborCost(@Param("laborCost") java.math.BigDecimal laborCost);

  List<Long> getIdsByLaborCost(@Param("list") List<java.math.BigDecimal> list);

  java.math.BigDecimal getLaborCostById(@Param("id") Long id);

  List<Map<String, Object>> getLaborCostByIds(@Param("ids") List<Long> ids);
  ProductSupplierQuoteVo selectVoById(@Param("id") Long id);
  /**
   * 查询 所属产品 分页下属列表
   */
  List<ProductSupplierQuoteItemVoPages> selectPagesByParentProduct(
    @Param("search") ProductSupplierQuoteSearchParamPo search
  );
}
